package com.fishingwithme.domain.anybiting;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
public class AfterAllBeansInitializedRunner {
    @Autowired
    private CircleMessageService circleMessageService;

    @EventListener(ContextRefreshedEvent.class)
    @Order(1)
    public void runAfterAllBeansInitialized(ContextRefreshedEvent e) {
//        if (e.getApplicationContext().getParent() == null) {
//            circleMessageService.loadMessagesFromDatabase();
//        }
    }
}
